By train
By train
Purwokerto, Yogyakarta, Solo and Semarang are connected to other cities with intensive railway service (http://kereta-api.co.id/), providing various classes of accommodation for all budgets. Central Java cities often have more than one railway station, a legacy of the many private railway lines during the colonial era.